<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var str = "https://image.baidu.com/search/index?tn=baiduimage&ps=1&ct=201326592&lm=-1&cl=2&nc=1&ie=utf-8&dyTabStr=MCwzLDYsMSw0LDUsMiw3LDgsOQ%3D%3D&word=%E6%94%80%E6%9E%9D%E8%8A%B1";
			var index=str.indexOf("?")
			var str_param=str.substring(index+1);
			var params=str_param.split("&");
			console.log(params);
			var obj={};
			for(var i=0;i<params.length;i++)
			{
				var param=params[i];
				var temp=param.split("=");
				obj[temp[0]]=decodeURI(temp[1]);
			}
			console.log(obj);
		</script>
	</body>
</html>
